import request from '@/utils/request'

export function update(data) {
  return request({
    url: '/ops/orders/list/ss/sys/mobileAssembly/update',
    method: 'post',
    data: data
  })
}

export function add(data) {
  return request({
    url: '/ss/sys/mobileAssembly/add',
    method: 'post',
    data: data
  })
}

export function del(id) {
  return request({
    url: '/ss/sys/mobileAssembly/del',
    method: 'get',
    params: {id}
  })
}

export function delImage(id) {
  return request({
    url: '/ss/sys/mobileAssembly/delImage',
    method: 'get',
    params: {id}
  })
}

export function delTab(id) {
  return request({
    url: '/ss/sys/mobileAssembly/delTab',
    method: 'get',
    params: {id}
  })
}

export function batchSave(data) {
  return request({
    url: '/ss/sys/mobileAssembly/batchSave',
    method: 'post',
    data: data
  })
}

export function list(tenantId, modelType) {
  return request({
    url: '/ss/sys/mobileAssembly/list',
    method: 'get',
    params: {tenantId: tenantId, modelType: modelType}
  })
}
